package view;

import com.example.pruebapfi.R;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

public class Footer extends LinearLayout {
  private TextView pageNumber;
  public Footer(final Context context, AttributeSet attrs) {
    super(context, attrs);

    LayoutInflater inflater = (LayoutInflater) context
        .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    inflater.inflate(R.layout.footer, this, true);
    this.pageNumber=(TextView) findViewById(R.id.textPageNumber);
  }

  public Footer(Context context) {
    this(context, null);
  }

  public void setPageNumber(String pageNumber) {
    this.pageNumber.setText(pageNumber);
  }

} 